import { Component } from 'react'
import { Route, Switch } from 'react-router-dom'

// 子路由不能使用懒加载了
import ProductList from './ProductList'
import AddProduct from './AddProduct'
// import Function from './Hook'

export default class Index extends Component {
  render() {
    return (
      <Switch>
        <Route path="/product/product_list" component={ProductList} />
        <Route path="/product/add_product" component={AddProduct} />
      </Switch>
    )
  }
}
